<?php

// config of 9503
return [
    'server' => 9503,
    'ws' => [
        'worker_num' => 2,
        // 'task_worker_num' => 2,
        // 'max_conn' => 10000,
        'max_wait_time' => 3,
        'max_request' => 1000,
        'dispatch_mode' => 2, // 数据包分发策略
        'task_worker_num' => 4,
        'heartbeat_check_interval' => 60, // 心跳检测间隔
        'heartbeat_idle_time' => 300, // 某个链接容许的最大闲置时间
        'pid_file' => __DIR__ . '/server.pid',
    ],
    'pdo' => [
        'poolSize' => 64,
        'host' => '192.168.3.36',
        'port' => 3306,
        'dbName' => 'toon',
        'charSet' => 'utf8mb4',
        'userName' => 'root',
        'password' => 'toon123',
    ],
    'redis' => [
        'notice' => [
            'poolSize' => 10,
            'host' => '192.168.3.36',
            'port' => 6379,
            'auth' => 'toon123',
            'db' => 8,
            'timeout' => 1,
        ],
    ]
];
